package controller;

import java.util.ArrayList;

import com.opensymphony.xwork2.ActionSupport;

import dao.SearchVisitor;
import entity.Visitor;

public class SearchVisitorAction extends ActionSupport{
	private ArrayList<Visitor> list;
	private String firstname_search;
	
	@Override
	public String execute() throws Exception {
		list = SearchVisitor.searchName(firstname_search);
		return SUCCESS;
	}
	
	public ArrayList<Visitor> getList() {
		return list;
	}
	public void setList(ArrayList<Visitor> list) {
		this.list = list;
	}
	public String getFirstname_search() {
		return firstname_search;
	}
	public void setFirstname_search(String firstname_search) {
		this.firstname_search = firstname_search;
	}
	
	
}
